package com.atguigu.gmall.order.service;

import com.atguigu.gmall.order.entity.OrderDetail;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author weiranyi
* @description 针对表【order_detail(订单明细表)】的数据库操作Service
* @createDate 2022-12-20 11:16:23
*/
public interface OrderDetailService extends IService<OrderDetail> {
    /**
     * 查询订单购买的所有商品
     * @param userId
     * @param id
     * @return
     */
    List<OrderDetail> getDetails(Long userId, Long id);
}
